package com.e3.basdoc.employee.client;

import java.util.List;

import com.e3.basdoc.employee.model.EmployeeModel;
import com.e3.template.tgf.TGFPagingGridPanel;
import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class EmployeeGridPanel extends TGFPagingGridPanel<EmployeeModel> {
	
	private EmployeeRPCServiceAsync service = EmployeeRPCService.Util.getInstance();

	@Override
	protected List<ColumnConfig> getGridColumnConfigs() {
		return EmployeeHelper.INSTANCE.getGridColumnConfigs();
	}

	@Override
	protected void getPagingData(PagingLoadConfig config,AsyncCallback<PagingLoadResult<EmployeeModel>> callback) {
		service.getPagingEmployee(config, callback);
	}

}
